/**
 * @FileName: MemberOrg.java
 * @Author
 * @Description:
 * @Date 2015年12月22日 下午4:53:35
 * @CopyRight ZTE Corporation
 */
package cn.hpclub.server.model;

import com.jfinal.ext.plugin.tablebind.TableBind;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;

@TableBind(tableName = "splash_image")
public class SplashImage extends Model<SplashImage>{
    private static final long       serialVersionUID = 1312507976941242048L;
    public static final SplashImage dao              = new SplashImage();

    public static final String      NAME             = "name";
    public static final String      SORT             = "sort";
    public static final String      ENABLED          = "enabled";
    public static final String      LINK_URL         = "link_url";
    public static final String      IMG_URL          = "img_url";
    public static final String      DESC             = "remark";
    public static final String      ID               = "id";
    public static final String      TYPE             = "type";
    public static final String      IS_SECTION       = "is_section";
    public static final String      SECTION_DESC     = "section_desc";
    public static final String      CREATE_TIME      = "create_time";

    public boolean update(String sql, String[] ids){
        int updateCount = Db.update(sql, (Object[])ids);
        if(updateCount > 0){
            return true;
        } else{
            return false;
        }
    }

}
